def answer(age: int) -> bool:
    return (age >18) and (age < 65)

assert answer(5) == False
assert answer(18) == False
assert answer(65) == False
assert answer(33) == True